<html>
<head>
<title>Scroller Scroll From To demo</title>
<!-- <link rel="stylesheet" type="text/css" href="../scroller.css" /> -->
<style>
	.scroller-span{color: #fff; font-size: 30px;}
	.scroller-table{background: #009bc2;}
</style>
</head>
<body>

<div id="scroller-pane">
</div>
<script type="text/javascript" src="scroller.min.js"></script>
<script type="text/javascript">
var scroller=Scroller.getNewInstance({
	direction:Scroller.DIRECTION.DOWN,
	interval:1000,
	width:200,
	amount:50,
	separatorType:Scroller.SEPARATOR.THOUSAND,
	separator:","
});
scroller.appendTo(document.getElementById("scroller-pane")).setStyle({backgroundColor:"green",color:"red"});
var count = 0;
var iNom="30000";
//根据个数更改数值
function rnd(m,n){
	return parseInt(m+Math.random()*(n-m)) ;
}
function iNomMeth(aaa){
	var arr=aaa.split("");
	var arr2=[];
	for(var i=0; i<arr.length; ++i){
		if(arr[i]!=9){
			console.log(1)
			arr[i]=rnd(4,9);
			
		}
		arr2.push(arr[i]);
		
	}

	 var str2=arr2.join('');
	 console.log(str2);
	return str2;
}

var interId = scroller.scrollFromTo(iNomMeth(iNom), iNom);

// scroller.scrollFromTo(999999, 34567);
</script>
</body>
</html>